package com.itheima.demoString;

import java.util.Scanner;

public class Demo06String {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入手机号码:");
        String phoneString = sc.next();
        String s1= phoneString.substring(0,3);
        String s2 = phoneString.substring(phoneString.length() - 4);
        System.out.println(s1 + "****" + s2);
    }
}
